<template>
  <div class="activate">
    <div class="title">
      <!-- <van-image :src="headerImg" height="80" width="80"></van-image>
      <van-image :src="headerText" width="276" height="121"></van-image> -->
      <van-image
        :src="headerImg"
        width="80"
        fit="contain"
        class="title-img"
      ></van-image>
      <van-image
        :src="headerText"
        width="200"
        fit="contain"
        class="title-text"
      ></van-image>
    </div>
    <div class="steps">
      <div class="steps-line"></div>
      <div class="step" v-for="(item, index) in stepsArr" :key="index">
        <van-image :src="item.img" height="30" fit="contain"></van-image>
        <span>{{ item.text }}</span>
      </div>
      <div class="step">
        <van-image :src="step3Img" height="30" fit="contain"></van-image>
        <span>激活额度</span>
      </div>
    </div>

    <div class="tip">
      <van-image
        :src="tipIcon"
        class="tip-img"
        width="16"
        fit="contain"
      ></van-image
      ><span class="tip-text"
        >用于核验身份及保障您的账户安全，资料将被加密保护</span
      >
    </div>
  </div>
</template>
<script lang="ts" setup>
import { ref } from "vue";
import headerImg from "@/assets/auth-header-img.png";
import headerText from "@/assets/auth-header-text.png";
import tipIcon from "@/assets/tip-auth-icon.png";
import step1Img from "@/assets/auth-step1.png";
import step2Img from "@/assets/auth-step2.png";
import step3Img from "@/assets/auth-step3.png";

const stepsArr = ref([
  { img: step1Img, text: "提交资料" },
  { img: step2Img, text: "人脸识别" },
  //   { img: step3Img, text: "激活额度" },
]);
</script>
<style lang="scss" scoped>
.activate {
  background: linear-gradient(to bottom, #ffc7d9, #f6f6f6);
  color: #fd2f70;
  display: flex;
  justify-content: center;
  flex-direction: column;
  .title {
    display: flex;
    &-img {
      margin: 20px;
    }
    &-text {
    }
  }
  .steps {
    position: relative;
    font-weight: bold;
    font-size: 14px;
    width: 74%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    &-line {
      margin: 0 20px 0 20px;
      background-color: #fd2f70;
      position: absolute;
      height: 2px;
      width: 80%;
      top: 15px;
      //   left: 10px;
    }

    .step {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  }
  .tip {
    margin: 14px 0;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    &-img {
      margin-right: 4px;
    }
    &-text {
    }
  }
}
</style>
